from rest_framework import serializers
from .models import ManipulateConcept, ManipulateEssay

class ManipulateConceptSerializer(serializers.ModelSerializer):
    """
    Serializer for ManipulateConcept model
    """
    class Meta:
        model = ManipulateConcept
        fields = '__all__'

class ManipulateEssaySerializer(serializers.ModelSerializer):
    """
    Serializer for ManipulateEssay model
    """
    class Meta:
        model = ManipulateEssay
        fields = '__all__'  
        order_by = '-created_at'